package com.xy.wwoa.approval.mapper;

import com.xy.wwoa.approval.model.PerformanceAppraisal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 陈璇
 * @Description PerformanceAppraisalMapper
 * @date 2019/8/31 11:48
 */
@Mapper
public interface PerformanceAppraisalMapper {

    /**
     * 添加绩效自评审核信息
     */
    int save(PerformanceAppraisal performanceAppraisal);

    /**
     * 根据审批编号获取绩效自评审核信息
     */
    PerformanceAppraisal findByApprovalNumber(String approvalNumber);

    /**
     * 分页获取绩效自评审核信息
     */
    long countPerformanceAppraisal(@Param("organizationId") Integer organizationId, @Param("employeeName") String employeeName);
    List<PerformanceAppraisal> listPerformanceAppraisal(@Param("organizationId") Integer organizationId, @Param("employeeName") String employeeName,
                                                        @Param("page") Integer page,@Param("size") Integer size);

    /**
     * 根据ID获取绩效自评审核信息
     */
    PerformanceAppraisal findById(Integer id);

}
